An Integrated Cyberinfrastructure For Real-Time Data Acquisition And Decision Making In Smart Buildings And Coral Reef Monitoring