The semiconductor memory device and a sensor using the same