```mermaid
graph TD
Start[Device Installed] --> A{Raw Messages<br/>Received<br/>Raw<br/>Messages?}
A -->|No| B{Firmware & <br/>Calibration OK?<br/>Firmware<br/>OK?}
A -->|Yes| C{Occupancy<brGetting<br/>Updates?<br/>}
B -->|No| D[Action: Flash Latest Firmware<br/>&>and Calibrate Device]
B -->|Yes| E[Action: Check Base Station<br/>Status and Health]
C -->|No| F{Position<br/>Assigned>Set?<br/>}
C -->|Yes| G[DeviceStatus: Working<brDevice<br/>Correctly>Working Correctly]
F -->|No| H[AssignAction: Position<brAssign<br/>to>Position to Device]
F -->|Yes| I[CheckAction: Verify Integration<br/>Message History]
``` |