Artificial Intelligence-based Sensors for Next Generation IoT Applications: A Review