This is a conceptual flow diagram of a ThingFacet/ThingModel interaction with a sensor, using a serial temperature sensor example. Refer to the tutorial 1. Serial Temperature Sensor for the actual code.
Key concepts involved:: ThingFacet, ThingModel, Model Instance, Attributes, Action, Value and Known, Workflow, Perif Protocol Handler