Question
Why was the Sensor output damaged when the Timer power was turned ON/OFF?
Answer
When the power was applied, the inrush current from the Timer may have damaged the Sensor output.
Countermeasure:
Use the MY Relay or other relay to turn the Timer power supply ON/OFF. (Make sure that the contact capacity is sufficient.)