Development of an on-line sensor for bioreactor operation