simulation and analysis of an infrared based measuring device