That is " if pir is high then...", same with the lights "if lights high then...".
Or have I done something wrong?