Creating Testnet Bitcoin Transaction with bitcoinjs-lib
The input you are trying to spend appears to be vout 1 in the tx.

Your current code tries to spend vout 0, which has already been spent. Try changing transaction.addInput(input.sender_prev_txid, 0); to transaction.addInput(input.sender_prev_txid, 1);