Toward Data-Driven Applications with AIoT Devices