At first I want to say, im new to this forum so sorry if i make some rooky mistakes.
i am writing a code for a project, this project is an interactive beerpongtable with leds under each cup and infrared sensors to detect the cups.
now the code itself is not the thing im stuck on. its the problem of the enviroment light wich triggers the sensors sometimes to a HIGH state when they dont have a cup sitting above them.
my question is: does somebody know how i can fix this? or are here any solutions for?