Arduino code for a leakage system with GSM

Kindly help me come up with an arduino code for a leakage detection incorporating an alarm and a GSM module

Hi

What have you tried or thought of so far?