implement poll model for sensor and repo