in the second week i started to work on the code as shown in the photo. It will have to weight the the glass and the water. the take a reading and save it. When the glass glass is removed the sensor will not show a reading. then when the glass is replaced and a new reading is taken. This second reading is taken away from the reading and this gives total amount of water drunk by the user. this is then repeated until the glass is empty and refilled. The readings are then that were more than the previous are not added to the running total. the water drunk then actuates the lights and sound.