Is there any good Raspberry Pi tutorials for making a temperature monitor that can be used to monitor the temperature of a rifle barrel? So far, I can only find tutorials for contact-less temperature sensor for Arduino, but not for Raspberry Pi.
Not trying to talk you out of your choice to use a contact-less temperature sensor, but perhaps you should consider a sensor that was directly mounted to the gun barrel (e.g. a thermistor). Why?
- "The measured value [with the MLX90614] is the average temperature of all objects in the Field Of View of the sensor."
- Thermistors are more accurate; 0.1°C - 0.2°C. OTOH, "the MLX90614 offers a standard accuracy of 0.5°C around room temperatures." And of course this assumes the MLX90614 is "focused" on the region of interest on the gun barrel.
- Cost: $0.75 vs $19.95
In summary, you may get better (more accurate, more reliable, more repeatable) results with a thermistor. For mounting the thermistor to the gun barrel, you should also consider a dab of silicone grease to reduce the thermal resistance between the barrel and the sensor.
You asked about tutorials. There are many that cover using thermistors with Raspberry Pi, and you can also find some that use the contact-less MLX90614... this one includes some code
One final point: Without trying to be pedantic, you mentioned in your comment that "adding bulk" was a concern. You've not described your entire system, but the RPi has no analog input. Unlike the Arduino then, the sensor-to-RPi interface will be digital instead of analog, and (if you're using a thermistor) this will require added components. The RPi also will require a heftier power supply than an Arduino. All of that said, the MLX90614 does have an I2C serial interface which makes it a good choice if you're fixed on using the RPi.