What can I use to make sure my water pipe does not freeze?

Heat tapes have a thermostat on them so they know when to turn on and off. Simply wrap the pipe and plug them in.