;; The Mousehole (Cricket Logo)

;; Turns light on when Tom's light goes off

;; Resets with switch (but code was written wrong.

;; For correct code check final

 

to triggerlight
loop [if sensora > 60 [waituntil [sensora < 55] a, setpower 8 on waituntil [switchb] waituntil [not switchb]]

control button =
triggerlight

control box =
loop [send sensora wait 3]
send 53
loop [if sensora > 20 [beep]