For how the memory reading works, see Advanced Do It Yourself Memory Reading In EVE Online
No, for example, information about how to find the root of the UI Tree is retained in the sample. If you want it to start from scratch, use a new instance of the Sensor
class.