Change sensor lookup to include username since the logged in user may be different.