This schematics has been used in the social_coffee project. This project aims to alert users when water tank is empty and the energy consumption of the coffee machine where the Arduino is attached.

All you need to know is on the http://greensocialcoffeemaker.weebly.com/ web site and in google code site: http://code.google.com/p/social-coffee-maker/