Cayenne + am2301 (temp. sensor) + sd card

Sir, the code is compiled but its not working.

In serial monitor is shown this message:

15:51:47.741 → Initializing SD card…initialization failed. Things to check:
15:51:47.956 → 1. is a card inserted?
15:51:47.956 → 2. is your wiring correct?
15:51:47.956 → 3. did you change the chipSelect pin to match your shield or module?
15:51:47.956 → Note: press reset or reopen this serial monitor after fixing your issue!

Sensor data is not shown in dashboard and in serial monitor.

do what it says,

I have checked it…everything is ok.
My sd card module is connected.
I have inserted sd card.

i dont know what to do anymore

can you share your circuit connection.

I am using Kingston microSD 2GB.

I have changed the code…i have just defined the pin for sensor…to adapt the code with shematic.

you connection is wrong. Please check the pinout for esp8266. Which esp8266 board are you using?

Why my connection is wrong.

How to connect them , can you help me please?

check which are the SPI pins on it.

SPI pins are D5, D6, D7 and D8

that i know, but which one represent SCK, MOSI, MISO, CS?

I am using this for pinout.

so please compare it with the circuit diagram you shared above.

I have tried to do it many times, but its not working. I don’t know why.

Is it possible to save data on cloud for 1 year?

This is all i need… if it’s possible to save data on cloud for a year, i dont need to use sd card.

cayenne only save data for one month, but you can download the data in csv format and store it on sd card.

Does cayenne save data for a year in cloud??

sorry, typo. it saves only for one month.

No problem.

Can you help with my project please.

I need to dave data on sd card and to show on dashboard.

Can you send me the wiring diagram please?

find out which pin on nodemcu is which?

I have tried to do that, but something is going wrong. I don’t know why.

can you do google search atleast?