Monitoring and controlling tubes by information coming from the object and/or discharge