An API for describing sensors