You can use a device called (inspirometer) that helps you breathe deeply to prevent TB infection.
To use the device, breathing is carried out deeply in the designated part of the device, then leaves it, expels air and rest for a few seconds, then re-exercises 10 times every hour in the waking periods.