Hi ! Got these two components from a printer. Maybe you can help ? I'm not sure what it is.
First is some kind of two-pins module with something which looks like an LED but with an enclosure around. Not sure that's an LED though, because it was inside the printer...
Edit: Ok I used a multimeter, it's a photo resistance
They typically have an LED on one side ( infra red sometimes ) and a photo diode on the other to detect when the led is on. A flag or light blocking arm or actuator is used sometimes to block the light. A sheet of paper hits one side or end of the flag to raise or lower the actuator into or out of the path of the light to detect paper movement inside the printer. It just depends on the make , model and manufacturer.
I think the sensor and emitter are in the same side. Without a white paper there is no reflection on the other side, which is black and with a paper enough reflection triggers the sensor. If the sensor is opposite of the emitter, then a sheet of paper can't quite block the IR emitter. Just my 2 cents.
In my printer, I found parts like that too. A ribbon with very find stripes ran between the two arms of the device and the ribbon was connected to the print head. Therefore, i believe it was a system to detect the precise potion of the print head. In this case, I think the emitter and sensor were on opposite sides.