Sensing and monitoring for process optimization