Simplified sensor configuration API

The old style works as well, but now we can configure a sensor with just a single method call.