Actually GFI's are current protection devices and required just about everywhere in the US for use when water is present. They measure the current delivered to a circuit and the current being returned through the neutral line which must be identical. If there is a difference, the device trips...