Interfacing optoelectric proximity sensor with arduino