Sensor integration for in vivo tests