nodemcu-sensor
A simple arduino sketch that sends temperature, pressure, humidity and light level via mqtt
Required hardware
- NodeMcu V3
- BME280 (Temperature, Pressure and Humidity sensor)
- BH1750 (Light sensor)
Required software
Required libraries
Wiring
Setup
-
Follow this setup guide.
-
Import the required libaries
-
Paste the code from this repo
-
Edit the config
-
Press upload
-
After uploading you should see some messages printed to the serial monitor.
- You can open the serial monitor from the tools menu.
-
When confirmed working correctly, off you go.