Fixed bug in initialization of IRSensor where c was set to 0.