infrared reflectance sensor with resistors