change property of pir sensor from short to boolean