Digital Protocol SensorsCompatible with ESP32
The list of sensors using Digital protocol for your ESP32 projects, complete with wiring guides and code examples.
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.

KY-002
The KY-002 is a vibration switch module that detects shocks and vibrations through a conductive spring mechanism. Upon...

KY-003
The KY-003 is a Hall Magnetic Sensor Module that detects magnetic fields using the A3144 Hall-effect sensor. It provides...

KY-004
The KY-004 is a key switch module equipped with a tactile push-button. It provides a digital output signal when pressed,...

KY-008
The KY-008 is a laser transmitter module that emits a red laser beam at 650 nm with an output power of 5 mW. It is...

KY-010
The KY-010 is a photo interrupter module that detects objects by sensing interruptions in an infrared beam. It's ideal...

KY-011
The KY-011 is a two-color LED module featuring a common cathode 3mm LED capable of emitting red and green light. By...

KY-012
The KY-012 is an active piezoelectric buzzer module that emits a 2.5 kHz tone when powered. It operates within a voltage...

KY-017
The KY-017 is a mercury tilt switch module that detects changes in orientation. When tilted beyond a certain angle, the...

KY-019
The KY-019 is a 5V relay module that enables microcontrollers to control high-voltage devices. It supports both AC and...

KY-020
The KY-020 is a tilt switch module that detects changes in orientation. It provides a digital signal output, making it...

KY-021
The KY-021 is a mini magnetic reed switch module that detects the presence of a magnetic field. It provides a digital...

KY-024
The KY-024 is a linear magnetic Hall sensor module that provides both analog and digital outputs. It is equipped with a...

KY-025
The KY-025 is a reed switch module that provides both analog and digital outputs. It is equipped with a potentiometer to...

KY-026
The KY-026 is a flame sensor module capable of detecting light in the 760 nm to 1100 nm wavelength range. It offers both...

KY-027
The KY-027 is a motion detection module featuring a mercury tilt switch and an LED. It detects tilt or orientation...

KY-028
The KY-028 is a digital temperature sensor module equipped with an NTC thermistor. It offers both analog and digital...

KY-029
The KY-029 is a dual-color LED module featuring a 3mm LED that emits red and green light. By adjusting the intensity of...

KY-031
The KY-031 is a knock sensor module that detects physical impacts or vibrations. Upon detecting a knock, it outputs a...

KY-032
The KY-032 is an infrared obstacle avoidance sensor module that detects objects by emitting and receiving infrared...

KY-033
The KY-033 is a line tracking sensor module that detects light-reflective and light-absorbing surfaces using infrared...

KY-034
The KY-034 is an automatic flashing color LED module that emits a sequence of seven colors when powered. It's suitable...

KY-036
The KY-036 is a metal touch sensor module that detects touch via its metal tip, offering both analog and digital...

KY-037
The KY-037 is a high sensitivity sound detection module featuring an electret condenser microphone and an LM393...

KY-038
The KY-038 is a microphone sound sensor module equipped with an electret condenser microphone and an LM393 comparator....

KY-040
The KY-040 is a rotary encoder module that provides digital signals corresponding to the rotational position and...

KY-050
The KY-050 is an ultrasonic distance sensor module capable of measuring distances ranging from 2 cm to 300 cm with a...

KY-051
The KY-051 is a versatile voltage level shifter module that enables safe communication between devices operating at...