1. A method for operating a sensor based application comprising: receiving a context hierarchy for the sensor based application, the context hierarchy comprising a plurality of contexts, wherein each of the contexts is assigned a level of interest and a priority; reading the context hierarchy and discovering at least one sensor associated with each of the plurality of contexts; and reading at least one value of each of the sensors, and applying the values.