Grove Temperature Sensor v1.2

Im using Grove - Temperature Sensor V1.2 with M5Stack AWS Edu kit,…im using the same example code given by seeeds wiki. It perfectly worked with my arduino… But in m5stack it gives nan, and the raw values are 3400.00,3900.66 likes this, can anyone help me to resolve this