check device status