IoT means Internet of Things. It is a concept encompassing the interconnection of everyday devices to the internet, allowing them to collect and exchange data. These devices can range from home appliances and cars to industrial sensors and medical devices.
M2M means Machine-to-Machine. It is an older concept referring to direct communication between devices without human intervention. This communication can occur via cellular networks, Wi-Fi, or other technologies.