might be, it will help to you ?
for measure fluide level. i used photodiode and LED light.
(elementry class !! haha)
in result. most big problem was the control variables of materials ( for example, Light reflection of material, surface of material things.. )
(actually i didnt calculate.)
in pictures. for fluid sample. i used coke.(it was bad choice)
character of photodiode really well reciving effect from temp..
LED temp is really hot.