I have several sensors each has different functionality I want to read every one at certain time>>>but the problem that if I used delay this will delay all sensors
this pseudocode meant to read light sensor every 10 second but infra every 2 second badly infra will wait for light delay..
light sensor
delay(10000)
infra sensor
delay(2000)
any solution how to treat every one for separate time I thought about time.h but this need a new hardware and Ill make it my last choice