Fixed infrared sensor, added testing