Sensor compatibility with newest version of ev3dev

Added support to the updated type_id (name) of sensors.
Tested with Infrared sensor.