18mm is the outer diameter of the thread on the sensor, and the 1.5 mm is the pitch between the threads themselves
if you go into a good tool shop and ask for a nut 18x1.5mm they should able to point you in the right direction
or as I did get a tap and make your own
Cheers
Steve