get_measurements function

Get the measurements for a device.