Changed IRSensor.cpp and .h

- Changed all the doubles to float