automatic lamp dimmer circuit diagram or automatically using Triac and light sensor LDR. working of triac and diac as switch to ac supply circuit for lamp