The religion, in which Mahavira is seen as the manifestation of 24 Tirthankaras (teachers), attributes souls to all living creatures, as well as other natural objects.
The religion attributes souls to machines and non-living creatures. 