Residual-current device
GFCIs are a suitable replacement for two prong outlets without a grounded wire. The National Electric Code requires GFCI protection in dwelling on kitchen counter tops, bathrooms, unfinished basements not intended as habitable rooms, crawl spaces, garages, sinks where the receptacles are installed within 6 feet from the top edge of the bowl of the sink, boathouses, bathtubs or shower stalls where receptacles are installed within 6 feet from the edge of the bathtub or shower, laundry areas, outdoors except for receptacles that are not readily accessible and are supplied by a branch circuit dedicated to electric snow-melting, deicing, or pipeline and vessel heating equipment shall be installed in accordance with NEC 426.28 or 427.22 as applicable. (NEC 210.8 (A))