This looks wrong.  You should query which sensors are supported from the board plugin.