Digital Protocol Sensors
Compatible 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 Vibration Switch Module image

KY-002

KY-0xx module Digital

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

Learn More
KY-003 Hall Magnetic Sensor Module image

KY-003

KY-0xx module Digital

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

Learn More
KY-004 Key Switch Module image

KY-004

KY-0xx module Digital

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

Learn More
KY-008 Laser Transmitter Module image

KY-008

KY-0xx module Digital

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...

Learn More
KY-010 Photo Interrupter Module image

KY-010

KY-0xx module Digital

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

Learn More
KY-011 Two-Color LED Module image

KY-011

KY-0xx module Digital

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

Learn More
KY-012 Active Buzzer Module image

KY-012

KY-0xx module Digital

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

Learn More
KY-017 Mercury Tilt Switch Module image

KY-017

KY-0xx module Digital

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

Learn More
KY-019 5V Relay Module image

KY-019

KY-0xx module Digital

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

Learn More
KY-020 Tilt Switch Module image

KY-020

KY-0xx module Digital

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

Learn More
KY-021 Mini Magnetic Reed Switch Module image

KY-021

KY-0xx module Digital

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

Learn More
KY-024 Linear Magnetic Hall Sensor Module image

KY-024

KY-0xx module Analog Digital

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

Learn More
KY-025 Reed Switch Module image

KY-025

KY-0xx module Analog Digital

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

Learn More
KY-026 Flame Sensor Module image

KY-026

KY-0xx module Analog Digital

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

Learn More
KY-027 Magic Light Cup Module image

KY-027

KY-0xx module Digital

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

Learn More
KY-028 Digital Temperature Sensor Module image

KY-028

KY-0xx module Analog Digital

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

Learn More
KY-029 Dual Color LED Module image

KY-029

KY-0xx module Digital

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

Learn More
KY-031 Knock Sensor Module image

KY-031

KY-0xx module Digital

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

Learn More
KY-032 Infrared Obstacle Avoidance Sensor Module image

KY-032

KY-0xx module Digital

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

Learn More
KY-033 Line Tracking Sensor Module image

KY-033

KY-0xx module Digital

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

Learn More
KY-034 Automatic Flashing Color LED Module image

KY-034

KY-0xx module Digital

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

Learn More
KY-036 Metal Touch Sensor Module image

KY-036

KY-0xx module Analog Digital

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

Learn More
KY-037 High Sensitivity Sound Detection Module image

KY-037

KY-0xx module Analog Digital

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

Learn More
KY-038 Microphone Sound Sensor Module image

KY-038

KY-0xx module Analog Digital

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

Learn More
KY-040 Rotary Encoder Module image

KY-040

KY-0xx module Digital

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

Learn More
KY-050 Ultrasonic Distance Sensor Module image

KY-050

KY-0xx module Digital

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

Learn More
KY-051 Voltage Translator / Level Shifter image

KY-051

KY-0xx module Digital

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

Learn More