Added proximity sensor support and more

+ proximity sensore support
+ new button param handling
- config read on every click

*NOT TESTED*