Sensors/ Digital

ESP32 Digital Sensors

Every Digital sensor in the catalog, all wired and coded for the ESP32.

29 sensors Wiring diagrams Code for 5 frameworks

All Digital sensors

29 sensors
HC-SR04 Ultrasonic Distance SensorHC-SR04 Ultrasonic Distance Sensor Distance$1.50 JSN-SR04T Waterproof Ultrasonic Distance SensorJSN-SR04T Waterproof Ultrasonic Distance Sensor Distance$5 KY-002 Vibration Switch ModuleKY-002 Vibration Switch Module KY-0xx module$2 KY-003 Hall Magnetic Sensor ModuleKY-003 Hall Magnetic Sensor Module KY-0xx module$2 KY-004 Key Switch ModuleKY-004 Key Switch Module KY-0xx module$1 KY-008 Laser Transmitter ModuleKY-008 Laser Transmitter Module KY-0xx module$1 KY-010 Photo Interrupter ModuleKY-010 Photo Interrupter Module KY-0xx module$1 KY-011 Two-Color LED ModuleKY-011 Two-Color LED Module KY-0xx module$1 KY-012 Active Buzzer ModuleKY-012 Active Buzzer Module KY-0xx module$1 KY-017 Mercury Tilt Switch ModuleKY-017 Mercury Tilt Switch Module KY-0xx module$1 KY-019 5V Relay ModuleKY-019 5V Relay Module KY-0xx module$2 KY-020 Tilt Switch ModuleKY-020 Tilt Switch Module KY-0xx module$1 KY-021 Mini Magnetic Reed Switch ModuleKY-021 Mini Magnetic Reed Switch Module KY-0xx module$1 KY-024 Linear Magnetic Hall Sensor ModuleKY-024 Linear Magnetic Hall Sensor Module KY-0xx module$2 KY-025 Reed Switch ModuleKY-025 Reed Switch Module KY-0xx module$2 KY-026 Flame Sensor ModuleKY-026 Flame Sensor Module KY-0xx module$2 KY-027 Magic Light Cup ModuleKY-027 Magic Light Cup Module KY-0xx module$2 KY-028 Digital Temperature Sensor ModuleKY-028 Digital Temperature Sensor Module KY-0xx module$2 KY-029 Dual Color LED ModuleKY-029 Dual Color LED Module KY-0xx module$1 KY-031 Knock Sensor ModuleKY-031 Knock Sensor Module KY-0xx module$1 KY-032 Infrared Obstacle Avoidance Sensor ModuleKY-032 Infrared Obstacle Avoidance Sensor Module KY-0xx module$2 KY-033 Line Tracking Sensor ModuleKY-033 Line Tracking Sensor Module KY-0xx module$2 KY-034 Automatic Flashing Color LED ModuleKY-034 Automatic Flashing Color LED Module KY-0xx module$1 KY-036 Metal Touch Sensor ModuleKY-036 Metal Touch Sensor Module KY-0xx module$2 KY-037 High Sensitivity Sound Detection ModuleKY-037 High Sensitivity Sound Detection Module KY-0xx module$2 KY-038 Microphone Sound Sensor ModuleKY-038 Microphone Sound Sensor Module KY-0xx module$2 KY-040 Rotary Encoder ModuleKY-040 Rotary Encoder Module KY-0xx module$2 KY-050 Ultrasonic Distance Sensor ModuleKY-050 Ultrasonic Distance Sensor Module KY-0xx module$3 KY-051 Voltage Translator / Level ShifterKY-051 Voltage Translator / Level Shifter KY-0xx module$3

Digital on the ESP32

Digital signals are either HIGH (1) or LOW (0), and form the foundation of most microcontroller interfaces. ESP32 and Arduino support multiple digital input/output (GPIO) pins for reading button presses, toggling relays, flashing LEDs, and more.

Use digitalRead() and digitalWrite() to manage digital devices. These are perfect for handling limit switches, motion sensors, and on/off devices in simple or advanced automation tasks.

At a glance
In the catalog29 sensors
Top categoryKY-0xx module (27)