Smart and Compact Sensors with Edge-AI