Isn't this what it is made to do? We got such sensors here too, and they all do exactly what you hacked yours to do.