import time

print ('Programm started')

counter = 0

while True:
    # TODO: read photoresior input here
    input = 1


    if input == 0:
        print('somebody comes in')
        counter = counter + 1
         

    print(counter)
    time.sleep(1)  

    light_barrier_input == input == 0
    print('somebody comes in')
    counter = counter + 1  