When doing home improvement work, it’s critical to know where your pipes are. Pounding nails and driving screws is all well and good, until you puncture a water or heating pipe. I’ve known at least 2 people who were nailing baseboard trim, and hit the pipes bringing water to the baseboard heating system. In both of these cases, they did not realize they hit the pipe until they had standing water in the basement!
What to do: Buy a stud sensor that also detects pipes and wiring. You can also look around in the attic or the basement (if it’s unfinished) to get a sense of where pipes are hiding. Finally, if the wall will be covered by whatever you’re building or installing, you can always carefully cut a test hatch to find plumbing lurking in the walls.