newer version with sensor