Function
-        
Sense
visible light, IR, UV
-        
By
Photo bJT, photo diode, photo FET
-        
Use
to detect object by emit light to the object then capture the reflect light
Type
- Through Beam
 - Not affected by the color of the object
 - High position detection, repeatability
 - Emitter & receiver are separated.
 
- Reflective
 - Suitable for transparent obj, semi trans, reflective obj
 - Not affected by background
 
- Diffuse
 - Affected by background, obj color
 - Easy to install
 
- Limited reflective
 - Limited detectable zone only
 - Not affected by background after sensing zone.
 
Note
-         Through Beam sensor may face interference from other through beam sensor or other light source
-         Diffuse/reflect wont face these type of interference because they detect the light with their own clock