in-memory sensing