An ultrasound machine painlessly sends sound waves into your body. The sound waves bounce off your body and the machine measures them and generates a live image of the inside of your body. Your doctor can use an ultrasound machine to make sure that a needle is going into the exact location that they want it to go to give you an injection.