added proximity sensor code
made proximity thing standalone