Public function to read from devices