Build IoT applications using digital twins, gateways, rule engines, AI/ML integration, and related patterns