Sort:  

I didn't understand it!?

OIC, the only solution for that is to invert the signal at the hardware level. Such an inverter can simply be built with a single transistor and two resistors, or you can use a chip with six of them, like a 74HC04 (powered with 3,3V).

ঈত

it is too much costly here in Bangladesh!!