Control the Water wheel with the Internet of Things