Working version with sensors, history and login enabled