- Add the Fire widget (in Output → Safety & Alarms).
- Its code says: when the board sends A → show FIRE; a → SAFE.
- Optional: tap Sound → Speaker to play a siren on fire!
- Put the board code below on your board with a flame sensor on i2.
Board code
Put this on your TinkerPy board with TinkerPy Projects:
import bluetooth setup: bluetooth_begin() # switches Bluetooth on when the board starts loop: if i2 == ON: bluetooth_write("A") o1 = pwm(100) else: bluetooth_write("a") o1 = 0 wait(500)