Pinpoint liquid leakage location by sensing distance or by area