Files
OpenMQTT-Gateway/docs/setitup/sensors.md
T
Die Peter Pan 0ece563a52 [MQ2] Gas sensor & tweak DHT config to avoid editing source when PIN is different (#1576)
Add MQ2 Gas sensor & tweak DHT config to avoid editing source when PIN is different
2023-03-26 17:21:05 -05:00

1.9 KiB

Sensors

Compatible sensors

Module Purpose Where to Buy
DHT11 Temperature, Humidity parts list
DHT22 Temperature, Humidity parts list
HCSR501 PIR parts list
BH1750 Digital light parts list
BME280 Temperature, Humidity, Pressure parts list
BMP280 Temperature, Pressure parts list
HTU21 Temperature, Humidity parts list
GPIO Input Inputs -
GPIO KeyCode Keycode parts list
INA226 Current, Voltage parts list
MQ2 Gas (flammable) parts list
TEMT6000 Luminosity parts list
TSL2561 Luminosity parts list

Pinout

Module Arduino Pin ESP8266 Pin ESP32 Pin
Analog reading A0 A0 A0
BH1750 SDA A4 D2 21
BH1750 SCL A5 D1 22
BME280/BMP280 SDA A4 D2 21
BME280/BMP280 SCL A5 D1 22
DHT11/22 D8 D1 16
HC-SR501/HC-SR505 7 D5 5
HTU21 SDA A4 D2 21
HTU21 SCL A5 D1 22
INA226 SDA A4 D2 21
INA226 SCL A5 D1 22
MQ02 A0 + D4 A0 + D4 A0 + D4
TEMT6000 A0 A0 A0
TSL2561 SDA A4 D2 21
TSL2561 SCL A5 D1 22

Vcc pin of the board and the Module to a 3.3V or 5V supply source depending on sensor voltage requirement. Ground pins of the board and the Module to the ground of the supply source.