Is it safe to sleep w/a Heating pad?

It has a sensor that automatically shuts it off but is it bad to sleep with one around my stomach if I'm preggers?