Proximity switches or sensors measure "closeness" to a targeted object and open or close an electrical circuit when they make contact with or come within a certain distance of an object. There are four basic types of proximity switches: infrared, acoustic, capacitive, and inductive.