Temperature sensors for rail vehicles