added proximity sensor code needs work