#Pico le panna varum coz crt aah anta time change le namma ir eeh on pannanum
from machine import Pin
import utime
buz=Pin(6,Pin.OUT)
b1=Pin(0,Pin.IN)
b2=Pin(1,Pin.IN)
p=0
c=0
while True:
if b1.value()==0:
#print("A passenger steped in")
c+=1
p+=1
#print("Count:\t",c)
#print("No of passengers travelled:\t",p)
if b2.value()==0:
#print("A passenger steped out")
c-=1
if c<=0:
c=0
#print("Count:\t",c)
#print("No of passengers travelled:\t",p)
print("Count:\t",c)
print("No of passengers travelled:\t",p)
utime.sleep_ms(100)