;; Mousehole Final (Cricket Logo)

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

;; Resets with switch (turns off)

 

to triggerlight
loop [if sensora > 25 [waituntil [sensora < 10] a, setpower 8 on waituntil [switchb] waituntil [not switchb] a, off]

control buttons =
triggerlight

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