Smart Trashbin metal detector with coin reward... need help

looks like the proximity sensor output is open-collector.

it should have no voltage when the sensor is powered and will pull the output low when acitve. configure the Arduino input as INPUT_PULLUP