Hi all. Like to use a 4013 flip flop to drive a relay on/off in latch mode. Managed to make up a little circuit using a transistor to drive the relay, but I am wanting to trigger the input of the 4013 from the trigger output of one of those little obstacle avoidance modules off Ebay. The issue is, the trigger output is sitting at the supply volts of 5, but when connected to the input of the 4013, it drops to 3 volts before the it senses anything in front of it. I am going into pin 3 of the IC. Maybe someone has a better idea of a circuit. I need to reverse a model train on a section of track, so need to drive a DPDT relay to do the track supply switching. Any help would be much appreciated.