Water level sensor and datalogger