More usually than not leaks are detected much later than they'd started and after much harm had already been performed. Before you go to mattress within the night, close the Main valve at the main inlet of your plumbing system.
For this, you first need to know the working of a plumbing system and the common issues that come up. It just isn't a single system however a set of techniques that work independently or collectively in some circumstances.