Understanding DPDT Relay Circuit Design and Wiring Guide
Begin with a clearly isolated power input–separate the coil excitation path from signal contacts to prevent interference. Use flyback diodes (1N4007) directly across the coil terminals, oriented in reverse.