Correcting pir sensor