(bug-fix:minor) Make sure sensors does not read over a closed stream