I've spent some time commenting my code so it's a beauty to look at!

The code works by starting off in study mode when you power on the Intel Edison.

When this happens the reading light turns on, this signals that it's time to start reading. This also starts the monitoring process and the pomodoro timer. Of course, if you would like to turn on or off the reading light there's a simple push button to wireless toggle the reading light.

There's an LED which lights up when you've read for 25 minutes and it's time to take a break. This starts a 5 minute break timer which turns off the LED when the break is finished. Both the start and end of break time is signaled by a buzz from the speaker.

There's also a continuous monitoring of the study environment itself.

In the code you preset what temperature you prefer in your room when studying, and at what air quality you really should ventilate the room.

If the room temperature is below one degree of your preset the room heater turns on to remedy the cold temperature. Likewise, if the temperature is above one degree of your preset, the room heater turns off and the room will begin to cool again.

If you've been studying for a while, as is often done in exam periods, the air quality in the room will decline. The air quality sensor will immediately tell you when it's time to open a window to let in some fresh air, and increase the quality of your work.

When the air quality drops below your preset a signaling LED will light up and won't turn off again until the air quality is once again within optimal parameters.

The code is written mostly by me based on both previous projects and example sketches from libraries. The code to make the grove temperature sensor work is mostly from Bruce Qin, which I found at this site. The temperature sensor code has the benefit of not needing an external library. Finding the average value of the air quality sensor was done by following this guide by David A. Mellis.