from machine import Pin
from time import sleep
import dht
d_pin= dht.DHT22(Pin(4))
while True:
d_pin.measure()
f=d_pin.temperature()*(9/5)+32.0
b=d_pin.temperature()
c=d_pin.humidity()
print('temperature',b)
print('Humidity ' , c)
print('farenheight ',f)
servo=PWM(Pin(27),freq=50)
duty_cycle=0
while True:
servo.duty(25)
sleep(1)
servo.duty(50)
sleep(1)
servo.duty(125)
sleep(1)