Sketch upload error on arduino

Hi all, I am using arduino borad with a grove temperature sensor and trying to make the demo code work from this page: Grove - AHT20 I2C Industrial Grade Temperature&Humidity Sensor - Seeed Wiki
I keep getting the same "an error occured while uploading the sketch" error.
Pls note, on the same arduino board, I had uploaded a sketch once but wanted to upload a new sketch this time.
Any idea on what could be going wrong is highly appreciated.

Hi, @startechrcmmc
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

Have you tried uploading a code you know uploads, like the "Blink without delay" example.

What model Arduino are you using?
Can you upload with the sensor disconnected?

Thanks.. Tom... :smiley: :+1: :coffee: :australia: