Switch with different delays

Sensors are tcrt5000 modules. They are used for detecting the presence of something. When it is not there for 3 days a led will change from green to red.