fixed Context error and implemented sensor interface