The Developer Preview for Android 11 is now available; test it out and share your feedback.

com.google.android.things.userdriver.sensor

Interfaces

UserSensorDriver Driver to interface with a user-connected sensor. 

Classes

UserSensor A user-defined sensor backed by a UserSensorDriver
UserSensor.Builder Builder to allow for flexible UserSensor construction. 
UserSensorReading A single user-sensor reading.