On-machine sensors