Hi,
Is this how your circuit is constructed?
If so, unplug the USB port and do not use it until you know about current limit resistors for LEDs, and I am worried about the 24V supply for the sensor yet direct connection to the arduino input.
Tom... ![]()
