tidy namings.
Add the sensor table.
Use threshold and map one-to-one sensors to wire

Note that this commit includes code for maintaining the last round of
analog values, but those values are not currently used.  Committed for
the sake of committing, in case we need them later, but might also be
removed in the next commit.