I spent $542 to upgrade a home security system in a rental apartment. Can I deduct the total amount or would the expense be considered a capital improvement?

Since the amount is less than $2500, can the cost be fully deducted in this tax year or would the upgrade be considered a capital improvement to the rental apartment.