frommachineimportPinfromtimeimportsleepimportneopixelimportdhtPIXEL_NUMBER=10np=neopixel.NeoPixel(Pin(10),PIXEL_NUMBER)# Pin D7SENSOR_PIN=5# Pin D2TEMP_SENSOR=dht.DHT11(Pin(SENSOR_PIN))sleep(1)red=(255,0,0)# set to redgreen=(0,128,0)# set to greenblue=(0,0,64)# set to bluedefhotLED():foriinrange(0,PIXEL_NUMBER):np[i]=rednp.write()defcoldLED():foriinrange(0,PIXEL_NUMBER):np[i]=bluenp.write()defneutralLED():foriinrange(0,PIXEL_NUMBER):np[i]=greennp.write()while(1):TEMP_SENSOR.measure()print(TEMP_SENSOR.temperature())temp=TEMP_SENSOR.temperature()if(temp>=28):#Threshold for when the LEDs indicate a hot temperaturehotLED()if(temp<=22):#Threshold for when the LEDs indicate a cold temperaturecoldLED()if(temp>22andtemp<28):#Threshold for when the LEDs indicate a neutral temperatureneutralLED()sleep(1)