README.md 942 B

WiFi-connected Lux-sensor

This project is for building a WiFi-connected Lux-sensor for the garage. The sensor reads the lux-value once every 10 seconds, and sends the value to the server once a minute.

The sensor used is Adafruit TSL2561 with I2C-Id: 0x39

WiFi ssid and password are stored in a file called config.h, which is not commited to git but looks like this:

#define WIFI_SSID "WiFi-ssid"
#define WIFI_PASSWORD "password"

Sensor connections:

Colour ESP8266 Sensor
Red +3.3V +3.3V
Black GND GND
Yellow GPIO4 SDA
Blue GPIO5 SCL

Useful links:

http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
https://github.com/esp8266/Arduino#documentation
https://github.com/adafruit/Adafruit_TSL2561