Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 738 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 738 Bytes

nodemcu-mqttpir

An app for esp8266 mcu with nodemcu firmware It send temperature/humidity from DHT22 sensor and alerts from PIR motion sensor like this. Keep in mind that this sensor use 3.3v logic level, but should be powered from 5v.

##To get it working you should:

  • Define SSID and password in init.lua.
  • Define broker in mqttpir.lua.
  • Wire DHT22 to GPIO5 and PIR sensor to GPIO4 or any other chosen in mqttpir.lua at pir and dht22 variables.

##Upload To upload files you can use Makefile provided, just type make upload