I am new to IoT, and I want to measure the temperature of a motor and record the data to a server. Since I have experience in back-end programming, I know how to push data to a server from a Pi, but my problem is how to properly measure temperature of a motor (of a floor cleaning machine). I found some sensors (LM35DZ) which will measure temperature, but I am building a hardware which should work for 10 hours a day and it should be stable. So could you suggest what the proper sensor and the way to do it is?
10 hours, and a few sensors, then the Raspberry Pi is overkill. A arduino is a more fitting device.
And take a look at one-wire temp sensors like DS18B20 then you have a digital output from the temp sensor.
And if you want to push the data over WiFi, then is ESP8266 or eq a nice fit to your project.