hi i need to program an Medium range Infrared Sensor to measure the water level of a cup approximately 10 to 12 cm. the IR sensor is programmed through a PIc16F877A micro controller. can any one help me in doing the programming part, or have another solution.. thanks