While working at a pool since I was a kid, I've had to deal with the battle of electricity and water. Not the best pair but they needed someway to cooroperate in some sense during meets and events. I had my eye on the temperature chip due to the fact that half of the the complaints at pools is that either the temperature is cold or too warm.  I had to re'invent' something similar to a nozzle. 

This project took my love for my job and the love for my major and combined it. 

Specifically, I took a temperature chip and evaluated the resulting voltage. This could then be converted to Celsius as seen on the code.

Based on those resulting outputs, if it is above a certain degree, the cup will tip. This is checked every 200 milliseconds.