The increasing demand for efficient resource management and fair billing mechanisms in shared living spaces, hostels, rentalproperties, and co-working environments has necessitated the development of automated pay-for-use systems. Traditionalflat-rate billing models often lead to inequitable cost distribution and resource wastage, as users lack incentives forconservation. This paper presents an RFID-based Resource Billing System, a comprehensive IoT-enabled pay-for-useplatform that tracks individual consumption of resources (electricity, water, TV, fans, appliances) and generates usage-basedbills with integrated data analytics. The system comprises three integrated components: (1) an ESP8266-based hardwaremodule with RFID readers (MFRC522) and relay circuits connected to resource outlets, enabling tap-to-start and tap-to-stopusage tracking with 99. 8% accuracy 5; (2) a Firebase Realtime Database cloud infrastructure that maintains user profiles, resource rates, usage sessions, billing records, and synchronization across multiple devices with 150ms average latency 6;and (3) a Python Tkinter analytics application that performs comprehensive data analysis including usage pattern recognition, peak demand forecasting, anomaly detection, and customizable report generation (daily, weekly, monthly, yearly). Thesystem implements a complete workflow: user registration with RFID card assignment, resource selection via RFID tap, realtime usage tracking with session management, automatic billing based on configurable rates (0. 12/kWh for electricity, 0. 05/gallon for water, 0. 50/hour for TV, etc. ), and payment processing. The ESP8266 firmware, written in Arduino C++, maintains persistent connection to Firebase using REST APIs, with watchdog timers ensuring 99. 9% uptime. The Pythonanalytics application utilizes pandas for data manipulation, matplotlib/seaborn for visualization, scikit-learn for predictivemodeling, and tkinter for the graphical user interface. Experimental deployment across 50 rooms in a university hostel over 6months generated 25, 000+ usage sessions, demonstrating 34% reduction in overall resource consumption compared to flatrate billing, 28% cost savings for low-usage users, and 97. 5% user satisfaction. The analytics module identified peak usagepatterns (evenings 6-10 PM accounting for 45% of electricity consumption), detected anomalous usage events (15 cases ofpotential theft/misuse), and forecasted demand with 92% accuracy using SARIMA models. The system supports up to 500concurrent devices per Firebase instance, with daily backups and GDPR-compliant data retention policies. This workrepresents the first integrated RFID-based pay-for-use system combining real-time IoT tracking with advanced analytics, demonstrating significant potential for equitable resource billing and consumption optimization.
N et al. (Mon,) studied this question.