I need a code for my tilt sensor

Sensor are the component which give input to Arduino to perform activity but you are mentioning it as OUTPUT change it as INPUT and then see the value

Also share your sensor number

What's the resistor for?

the tilt sensor?

What tilt sensor?

Sorry buddy this forum is for help
There is a column for pay for the code if you are ready to pay

You can request for complete code there

wait what sensor number? i can send u the pic?

Ya as @perfectbuddy is only taking input

ohh

Pls be concise your responses are so difficult to understand go through the forum policy and reply so that it will be easier to help out

Krishna

i could only find this pic i have this one

OP taking a analog signal, not a digital input. Therefore pinMode is not needed.

@krishna_agarwal Do not try to be first in each topic....

Not trying the same

oh i got it

It's hard to imagine them more concise.
I think you mean "verbose"

is it a tilt sensor?

yeah

This one?

Image seems to be same as this is just sensor not the module so I beliveve that he need some more connections to get input

yeah it says same number on mine too

I am not sure it will work or not but you can try this one by refering to this link