Best way to create connections

Sorry, I should've mentioned I don't need to unplug them. They can be permanently attached as I'm not planning to take the sensor out anymore once it is in place.