Code for esp32 data streaming

I've made a pulse sensor using esp32, can someone please guide me with the code to stream my pulse sensor data over thingspeak or ubidots?

This is how I've connected it, +ve pin of the sensor to 3v3 negative to gnd and signal pin to VP(GPIO36/Ao) of ESP32

Did you happen to use the internet and search words like "esp32 data to thingspeak"?

Also words such as "esp32 data udbidots" gets results as well.

Research, try it.

I don't have much knowledge in coding so don't know how to change the code for heart sensor.

Well, given time and research and practice on your part, I'm sure you'll get there.