Solved the problem with activating the sensor when clicking the div