distance led bar
i want to measure the level of my pellets in my pelletstove. The ultrasonic meter is not working well, so i hope that the infrared will do. I want a led-bar near my stove so i can see what's the level of my pellets. ( 10 cm- green, 20 cm green and orange, 25 cm orange, 30 cm orange, 35 cm orange and red, 40+ cm red). But i really don't know how to fix this. My controller (domoticz) can sent me an notification when the level is, for example 35 cm. anybody who can help me?