Tmp36 & Envirophat

Is there any instructions on how to add the tmp36 to the envirophat ? As in connecting it up.

see the following tutorial:

https://learn.pimoroni.com/tutorial/explorer-hat/making-a-minecraft-thermometer

… obviously the code applies to the Explorer HAT but wiring up should be the same.

Does this look right to get the temp?

import sys
import time
import scrollphat

from envirophat import analog

scrollphat.set_brightness(2)

while True:
try:
print(“updating new temp to diplay”)
scrollphat.clear()
temp = str(analog.read(3))
scrollphat.write_string(temp,0)
length = scrollphat.buffer_len()

            for i in range(length):
                    time.sleep(0.1)
            time.sleep(2)
            scrollphat.clear()
            time.sleep(10)
    except KeyboardInterrupt:
            scrollphat.clear()
            sys.exit(-1)

to read analog input 3, you would use the following:

temp = str(analog.three.read())