Please improve the grammaticallity of this:
By planting this device into their body, we can detect where they are in case some urgent diseases break out.
By planting this device in their body, we can detect where they are in case some urgent diseases break out.