It depends, so check with your medical team.
If you’re having any procedures or tests like xrays, an MRI scan or radiotherapy, speak to the medical team on admission, and follow their advice.
If you’re having surgery you may need to remove the sensor and transmitter - be sure the staff know you are wearing it, and follow their advice.
Other than that, you should be fine to continue to wear and use your sensor as normal.