I have one ds18b20 temperature sensor for this project, but I don't have the metal cover for it like shown below: enter image description here

So if possible I asked here to have your intelligence for finding some homemade alternative as metal cover for covering this sensor (Metal Covers are better).


If the required tools not have high price I can buy or borrow it, but I have the basic mechanical tools in my home, like shown at below:

enter image description here


  • $\begingroup$ Homemade with what equipment? I have a lathe at home for example... Not enough information in your question to be very helpful $\endgroup$ Jul 8, 2021 at 8:22
  • $\begingroup$ Thanks, @Jonathan_R_Swift, I have basic mechanical tools in my home and updated the question based on your comment. $\endgroup$ Jul 8, 2021 at 9:07
  • 1
    $\begingroup$ We need a lot more info. What is the purpose of the metal cover? Must it be waterproof; does it have to withstand pressure, or corrosives? how large can the diameter be and still fit into whatever you're going to use it for? For one extreme, you could wrap the thermistor in aluminum foil; for the other you'd need high-grade stainless with a silicone seal at the wiring interface. $\endgroup$ Jul 8, 2021 at 14:26
  • $\begingroup$ Thanks, @Carl_Witthoft, I need it for ordinary usage, so I only need waterproof, and dot past high pressure on it. Also, the proper size is shown here which is 6 mm*50 mm. $\endgroup$ Jul 8, 2021 at 19:36

1 Answer 1


Because you don't have much fabrication equipment at home you will need to find the metal casing. There are many miscellaneous objects that might work, for example a fired .22 case, or maybe a piece of copper tube with one end soldered shut.

Once you've got that, solder a cable onto your sensor, and then pot it in the metal case using 2 part epoxy. Thermal epoxy would be ideal, but it's expensive and it probably will work fine with regular epoxy.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.