finalized led function for solenoid, fan