how do i upload library without erasing all the other code on the arduino uno?
You don’t “upload library” to the Arduino. You upload a sketch. Uploading a new sketch overwrites the old sketch. You can’t upload a sketch without erasing the previous sketch.
What does any of that have to do with “dew heater kit for telescope”?