Arduino Forum
Connecting a light barrier (NPN or PNP) to an Arduino
Other Hardware
Sensors
MaximoEsfuerzo
September 23, 2025, 11:32am
2
The safest option is to use an optocoupler.
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Collegamento barriera PNP/NPN
Hardware
6
2437
May 7, 2021
NPN transistor ana out to arduino ana in
Interfacing
4
2969
May 6, 2021
Photoelectric sensor
Sensors
4
3029
May 6, 2021
Is 4N35 optocoupler direct to Arduino pin safe?
Interfacing
7
8272
May 6, 2021
Laser-barriers for falling object
General Guidance
13
3970
May 5, 2021