For now when i turn on switch only turns on light relay and fan relay. When switch off turns off light relay and fan relay.
I want to upgrade code that when i turn off light, fan relay will turn off after 5 mins.
I think it could be posible with millis() function.