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

@alto777 do you see this detail?
image
saying that connecting it this way would damage the IO-pin?

additionally

do you think that this schematic provided by the manufacturer is wrong?
image