A sensor assembly may comprise a housing, a sensor mounted in the housing, and an open cavity. The sensor may include a sensing element adapted to detect a target and generate an electrical signal in response to detecting the target. The open cavity may be positioned to expose the sensing element to a fluid. The open cavity may comprise a continuous distal perimeter adapted to define a substantially closed volume when the continuous distal perimeter is contacted with a surface.