Added temporary fix for the proximity sensor

@Smuldr @ktsitsikas Could you QA, make a better fix or merge this to fix the proximity sensor for now.