A header height sensor (102) for an agricultural harvester has an elongate sensor arm (112), a reversing joint (114) and a rotary sensor (116) mounted to a bracket (106) that is fixed to a point (100) of a harvesting head. The reversing joint includes a housing (152) that limits the deflection of the sensor in a lateral direction.