This is a flame sensor in the Sugar sensor series. The pin holes on the back allow compatibility with plastic building blocks.
Dimensions: 24 x 24 x 23 mm
Type: Analog Signal
Connect the module to Robotbit Edu with a 3Pin cable.
MakeCode Programming Tutorial
Import Sugar Extension
Search for sugar in the search bar (Kittenbot products has been verified by Microsoft)
Sugar extension: https://github.com/KittenBot/pxt-sugar
Kittenblock Programming Tutorial
MicroPython Programming Tutorial
value(): Returns the analog reading
from future import *
from sugar import *
flame_P0 = Flame('P0')
x = 0
screen.sync = 0
screen.fill((0, 0, 0))
screen.text(flame_P0.value(),5,10,2,(0, 119, 255))
If you have any question, please feel free to contact us at Discord, we will always be there to help.