You will define a composite state now. State hierarchies support the refinement of a behavior. To exercise this, you will add a motion sensor to the light controller:
Start with the statechart model included in this project:
Use the simulator to check the behavior. You can find a solution in the solutions project of this lesson.