# 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:
```c++
#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: