Update Leak_detector

Leak detector code with averaging software and alarm level.