
Overview
The sensor consists of an IR LED and a photo sensor (phototransistor). The light emitted by the IR LED gets reflected by any object placed in front of the sensor and this reflection is detected by the photo sensor (phototransistor). Any white (or lighter) colored surface reflects more than black (or darker) colored surface.
When the reflected light is detected, it produces Digital HIGH (or Binary 1) output on the Sig pin. The on-board LED indicator will also glow. If no reflection is detected or if the object is too far from the sensor, the output on the SIG pin stays at Digital LOW (Binary 0). The on-board LED indicator will be off as well.
The detectable range of this sensor is 4–16 mm. The module incorporates a Rail-to-Rail Operational Amplifier to amplify the output of phototransistor. There is a potentiometer which can be used to adjust the gain of the amplifier, that is, sensitivity of detection.
Get Inspired

Arduino Pro is introducing a powerful new member of the Portenta product family, the Portenta Machine Control. It’s a fully-centralized, low-power, industrial control unit able to drive equipment and machinery. Plus, you can program it using the Arduino framework or other embedded development platforms. Thanks to its computing power, the Portenta Machine Control enables a wide range of predictive maintenance and AI use cases. It enables the collection of real-time data from the factory floor, while supporting remote control of equipment, including from the cloud. Key benefits include: Shorter time-to-marketEnhance existing productsAdd connectivity for monitoring, as well as controlEach I/O pin can be configured, so you can tailor it to your needsMake equipment smarter, as well as AI-readyProvide security and robustness from the ground upOpen new business model opportunities (such as servitization)Interact with your equipment with advanced human-machine interfaces (HMI)Modular design for adaptation, expansion and upgrades Business as a Service The Portenta Machine Control allows companies to enable new business-as-a-service models. You can monitor customer usage of equipment for predictive maintenance while gathering valuable production data. The device enables industry standard soft-PLC control. Because of this, it's able to connect to a range of external sensors and actuators. For example, the following options are all available. Isolated digital I/O, 4-20mA compatible analog I/OThree configurable temperature channelsDedicated I2C connector. Multiple choices are available for network connectivity, including USB, Ethernet and WiFi and BLE. Furthermore, it offers impressive compatibility through industry specific protocols such as RS485. All I/O are protected by resettable fuses, but on-board power management ensures maximum reliability in harsh environments. The Portenta Machine Control core runs an Arduino Portenta H7