updated to check new water detection algorithm