Design of CMOS based High Temperature sensor with integrated memory