def on_temperature_change(obj=nil, &block)
      @on_temperature_change_obj = obj
      @on_temperature_change = Proc.new { |device, obj_ptr, index, temperature|
	    yield self, @thermocouples[index], temperature, object_for(obj_ptr)
	}
      Klass.set_OnTemperatureChange_Handler(@handle, @on_temperature_change, pointer_for(obj))
    end
def on_temperature_change(obj=nil, &block)
      @on_temperature_change_obj = obj
      @on_temperature_change = Proc.new { |device, obj_ptr, index, temperature|
	    yield self, @thermocouples[index], temperature, object_for(obj_ptr)
	}
      Klass.set_OnTemperatureChange_Handler(@handle, @on_temperature_change, pointer_for(obj))
    end
Sets a temperature change handler callback function. This is called when when the temperature has changed atleast by the sensitivity value that has been set.

 @param [String] obj Object to pass to the callback function. This is optional.
 @param [Proc] Block When the callback is executed, the device and object are yielded to this block.
 @example
     temp.on_temperature_change do |device, input, temperature, obj|
       puts "Input #{input.index}'s temperature changed to #{temperature}"
     end
 As this runs in it's own thread, be sure that all errors are properly handled or the thread will halt and not fire any more.
 @return [Boolean] returns true or raises an error