Overview
Sensor Module V1 is the legacy sensor framework providing support for 40+ sensor types with JSON-based data storage, calibration, and filtering capabilities. While V2 offers enhanced features, V1 remains fully supported and provides a simpler API for many common sensor applications.Architecture
Supported Sensors (40+)
Environmental Sensors
Temperature & Humidity Sensors
Temperature & Humidity Sensors
DHTSens - DHT11/DHT22/DHT21 Temperature & HumidityAHTSens - AHT10/AHT20 High-Precision SensorBME280Sens - Temperature, Humidity, Pressure
Gas & Air Quality Sensors
Gas & Air Quality Sensors
MQSens - MQ Series Gas Sensors (MQ-2/3/4/5/6/7/8/9/135)SCD30Sens - CO2, Temperature, HumidityDustSens - GP2Y1010AU0F Dust/Particle Sensor
Temperature-Only Sensors
Temperature-Only Sensors
DS18B20Sens - Dallas OneWire TemperatureMLX90614Sens - Infrared Temperature (Non-Contact)MAX6675Sens - K-Type ThermocoupleMAX31865Sens - RTD Temperature (PT100/PT1000)
Industrial & Measurement Sensors
Flow & Liquid Measurement
Flow & Liquid Measurement
FlowMeterSens - Water Flow Sensor (Basic)FlowMeterV2Sens - Enhanced Flow SensorFlowMeterV3Sens - Advanced Flow with Multiple OutputsPHSens - pH SensorSoilPHSens - Soil pH SensorTurbiditySens - Water Turbidity SensorTDSSens - Total Dissolved Solids
Weight & Power Measurement
Weight & Power Measurement
HX711Sens - Load Cell AmplifierINA219Sens - Current/Voltage/Power MonitorPZEM004TSens - AC Energy Monitor
Distance & Motion
Distance & Motion
UltrasonicSens - HC-SR04 Ultrasonic DistanceRPMSens - RPM/Speed Sensor
Navigation & Identification
GPS & Location
GPS & Location
GPSSens - GPS Module (NEO-6M/7M/8M)
RFID & Barcode
RFID & Barcode
RFIDSens - MFRC522 RFID ReaderGM67Sens - GM67 Barcode Scanner
Color & Light Sensors
TCS3200Sens - Color SensorBiometric Sensors
Heart Rate & SpO2
Heart Rate & SpO2
MAX30100LibSens - Pulse OximeterMAX3010xV2Sens - Enhanced Pulse Oximeter
Input & Time
KeypadI2CSens - I2C KeypadAnalog & Digital I/O
AnalogSens - General Analog InputBasic Usage
Setup and Initialization
Direct Sensor Access
Multiple Sensors of Same Type
Data Access Methods
JSON-Based Access
Sensor-Specific Getters
Module Management
Best Practices
Memory: Each sensor uses heap memory for JSON storage. Monitor available heap on ESP32/ESP8266:
Migration to V2
Consider migrating to V2 for:- Type-safe data access
- Built-in filtering
- Alert system
- Better memory management
Next Steps
Sensor Module V2
Explore the modern sensor framework
Calibration
Sensor calibration techniques