Sensing and control