3 Pin JST-XH Connector. Commonly used on printers for connecting 3 wire end stop wiring to controller boards. Not for high current use.
Typically found on filament sensors, and used on Creality series motherboards.
To use, strip the insulation from wire and crimp the pins to each wire lead. Orientate the pin with the latch facing towards the opening on the face of the connector. Insert the pin into the housing until it latches in place.