Photo Sensor

Does anyone know where to get nuts for these sensors? How do you wire these up to the Solenoid Breakout bumper using 24v? Our team has limited experience with electronics so additional help is appreciated :).

Thanks,
Team 0865