LEGO® temperature sensor is both expensive and hard to find (the only reliable supplier I know is PleStore... who only delivers in USA!). I thus tried to build one fully compatible with the original temperature sensor, so that RCX is able to display temperature correctly.
So I bought two kinds of NTC thermistors, a BC-Components 2322-640-63103 and a Murata NTSA0XV103FE1B0. After adding to them a series 2.2KOhm resistor, I charted temperature displayed by RCX versus actual temperature (measured with a thermocouple).
Good! within less than 1°C except near limits (the RCX displays temperature only from -20°C to 70°C), displayed temperature was correct...
I then found in Kekoa Proudfoot's document "RCX internals" the section of program code used by RCX to convert raw sensor value to temperature. I applied this algorithm to resistance values obtained from Murata and BC datasheets, and got a very good match.
Theory and experiments thus confirm the choice of components...
Remains to actually build the sensor, here is what I did (but of course other methods, perhaps simpler, can be used!)
Fasten together both brass tubes with heat shrink tube, while leaving a 1 mm gap between pieces. Tip of the probe will be thermally separated from the rest of the sensor. Solder wires and 2.2KOhm resistor to NTC resistor, insulate solders with fine heat shrink tube.
Insert the probe in the tube.
Seal the tube and fix the NTC with a drop of fast-cure epoxy glue.
Using the milling cutter mounted on the power drill with stand, remove two out of three 2x4 brick internal tubes. TAKE CARE TO YOUR FINGERS!!!. Drill a 4 mm hole through the brick end and the remaining internal tube. Make a notch in brick back end using the file to allow cable output.
Insert the tube in brick hole, then solder LEGO electric cable. Glue the brass tube to the brick with cyanoacrylic glue.
Close the brick with the 2x4 plate (you can glue them together... but don't forget to verify that everything works fine before!)
Here is the result!
Version française : http://www.freelug.org/article.php3?id_article=177